<?php if(!empty($navigation)):?>
    <?php foreach($navigation as $key => $value):?>
        <?php if(isset($value['pages']) && !empty($value['pages'])):?>
        <h3<?=(isset($value['active']) && $value['active'] === true) ? ' class="active"' : ''?>><a href="javascript:void(0)"><?=$value['label']?></a></h3>
        <ul>
            <?php foreach($value['pages'] as $keyPage => $page):?>
            <li<?=(isset($page['active']) && $page['active']===true)? ' class="active"' : ''?>><?= CHtml::link(Yii::t('crm', $page['label']),array('/'.$page['module'].'/'.$page['controller'].'/'.$page['action'])); ?></li>
            <?php endforeach;?>
        </ul>
        <?php endif; ?>
    <?php endforeach;?>
<?php endif;?>